package cn.com.chengmandian.erp.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * ERP系统-库存管理-请购
 * </p>
 *
 * @author AutoGenerator
 */
@Getter
@Setter
@TableName("erp_stock_apply")
@ApiModel(value = "ErpStockApply对象", description = "ERP系统-库存管理-请购")
public class ErpStockApply implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("运营城市")
    private Integer operateId;

    @ApiModelProperty("所属仓库")
    private Integer warehouseId;

    @ApiModelProperty("请购编号")
    private String applyNo;

    @ApiModelProperty("品类ID")
    private Integer categoryId;

    @ApiModelProperty("联系人")
    private String contractName;

    @ApiModelProperty("联系电话")
    private String contractPhone;

    @ApiModelProperty("收货地址")
    private String contractAddress;

    @ApiModelProperty("备注说明")
    private String remark;

    @ApiModelProperty("总价")
    private BigDecimal money;

    @ApiModelProperty("总数量")
    private Integer amount;

    @ApiModelProperty("明细总数")
    private Integer itemAmount;

    @ApiModelProperty("确认总价")
    private BigDecimal confirmMoney;

    @ApiModelProperty("确认总量")
    private Integer confirmAmount;

    @ApiModelProperty("已确认明细数")
    private Integer confirmItemAmount;

    @ApiModelProperty("发货总量")
    private Integer sendAmount;

    @ApiModelProperty("发货明细数")
    private Integer sendItemAmount;

    @ApiModelProperty("签收总量")
    private Integer signAmount;

    @ApiModelProperty("签收明细数")
    private Integer signItemAmount;

    @ApiModelProperty("状态1-草稿 2-审核中 3-采购处理中 4-处理完成 5-已驳回 6-废弃 31-采购待确认 32-待发货 33-待签收")
    private Integer status;

    @ApiModelProperty("状态说明")
    private String message;

    @ApiModelProperty("申请发起时间")
    private Date startTime;

    @ApiModelProperty("完成时间")
    private Date completeTime;

    @ApiModelProperty("审核时间")
    private Date authTime;

    @ApiModelProperty("审核人ID")
    private Integer authUser;

    @ApiModelProperty("审核人姓名")
    private String authName;

    @ApiModelProperty("审核说明")
    private String authReason;

    @ApiModelProperty("废弃时间")
    private Date destoryTime;

    @ApiModelProperty("废弃人ID")
    private Integer destoryUser;

    @ApiModelProperty("废弃人姓名")
    private String destoryName;

    @ApiModelProperty("废弃说明")
    private String destoryReason;

    @ApiModelProperty("附件")
    private String images;

    @ApiModelProperty("删除")
    @TableLogic(value = "0" ,delval = "1")
    private Integer isDeleted;

    @ApiModelProperty("创建人ID")
    private Integer createUser;

    @ApiModelProperty("创建人姓名")
    private String createName;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("修改时间")
    private Date modifyTime;

}
